/*
 * @Author: zxc
 * @Date: 2020-08-20 11:05:10
 * @LastEditTime: 2020-09-07 15:53:49
 * @LastEditors: zxc
 * @Description: 
 */
import { createRoutine } from 'redux-saga-routines';
import extendRoutine from '../extendRoutine';
import NAME_SPACE from '../../../constants/name-spce';

// 处理路由导航数据
export const menuAction = extendRoutine(
  createRoutine(`${NAME_SPACE.MENU}`),
  [
    {
      type: 'SET_MENU',
      action: 'setMenu',
    },
    {
      type: 'SET_CURRENT_MENU',
      action: 'setCurrentMenu',
    },
    {
      type: 'SET_THEME',
      action: 'setTheme',
    },
    {
      type: 'SET_PRIMARY_COLOR',
      action: 'setPrimaryColor',
    },
    {
      type: 'SET_DRAWER',
      action: 'setDrawer',
    },
  ]
)